﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Netfraction.Network.Protocol
{
    public enum FeatureActionType
    {
        Any,
        Message,
        MessageExtension,
        DataStreamExtension
    }

    public class ProtocolFeatureAction
    {
        public ProtocolFeatureAction(string actionCode, FeatureActionType actionType)
        {
            this.ActionCode = actionCode;
            this.ActionType = actionType;
        }

        public string ActionCode { get; set; }
        public FeatureActionType ActionType { get; set; }

        public override string ToString()
        {
            return this.ActionCode;
        }
    }

    [global::System.AttributeUsage(AttributeTargets.Field, Inherited = false, AllowMultiple = true)]
    sealed class ProtocolFeatureActionAttribute : Attribute
    {
        public ProtocolFeatureActionAttribute()
        {
        }

        public FeatureActionType ActionType { get; set; }
    }
}
